Ad030 — Type-confusion via mis-typed reference (CARTESIAN_POINT used as DIRECTION)

§12.11 (sub-class: type-confusion)

silent-loss adversarial

Sources

Description

Schema-driven late binding takes entity from instance table and casts without dynamic-type check; if upstream type-validation pass was skipped (perhaps because of an earlier parse error), downstream geometry code dereferences via wrong-type vtable.

Reproducer recipe

declare `#10=CARTESIAN_POINT(..)`; reference `#10` in slot whose schema-required type is `DIRECTION`.

Expected kernel behavior

every attribute bind must check dynamic type vs schema; reject with `E_TYPE_MISMATCH`.

Notes

H; primary RCE class for "STEP/STP file" CVEs in 2024–2026 advisories. **See also**: Ad042, Ad078. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ad042, Ad078

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Ad030: type-confusion: #10=CARTESIAN_POINT used in DIRECTION slot; schema-driven late binding without dynamic-type check → wrong-type vtable deref; primary RCE class for STEP CVEs 2024-2026; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad030'),'2;1');
5FILE_NAME('Ad030.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#10=CARTESIAN_POINT('',(1.0,2.0,3.0));
12#11=DIRECTION('type_confused_dir',(#10,0.,0.));
13#12=LINE('type_confused_line',#1,#10);
14#13=DIRECTION('wrong_type_slot',(#10,1.,0.));
15ENDSEC;
16END-ISO-10303-21;