step-examples/12-11-adversarial/Ad030.stp
Sources
- 12-adversarial.md A030
- ZDI-25-615 / CVE-2025-9450 (Dassault eDrawings UAF/uninit on JT)
- 06-nist-sfa.md S007
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
matches(rb'(?s)#10=CARTESIAN_POINT.*=DIRECTION\([^;]*#10') or matches(rb'(?s)CARTESIAN_POINT.*LINE\([^;]*,#10\)')contains(b'CARTESIAN_POINT') and contains(b'DIRECTION')
Tier-3 assertions
load == "ok"
Cross-references
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;