CVE-2026-42476
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedTwo heap-based out-of-bounds read vulnerabilities in the STL ASCII file parser in Open CASCADE Technology (OCCT) V8_0_0_rc5 exist in RWStl_Reader::ReadAscii because buffers returned by Standard_ReadLineBuffer::ReadLine() are not properly length-validated before strncasecmp or direct byte access. User-assisted attackers can trigger these issues by persuading a victim to open a crafted STL file with extremely short lines, resulting in a denial of service or possible information disclosure.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceHeap-based out-of-bounds read vulnerabilities in Open CASCADE Technology's STL ASCII parser (RWStl_Reader::ReadAscii) where buffers from Standard_ReadLineBuffer::ReadLine() lack proper length validation before strncasecmp() calls and direct byte access. Crafted STL files with extremely short lines trigger these OOB reads.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 7.9.3= 8.0.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Open CASCADE Technology versionCheck the installed version of Open CASCADE Technology library (e.g., via package manager, file version info, or application's dependency list). Compare against affected versions: <= 7.9.3 or = 8.0.0.Affected if Installed version is 7.9.3 or earlier, or exactly 8.0.0
-
Confirm STL ASCII parsing is in useInspect application code or configuration to determine if RWStl_Reader::ReadAscii or the STL file reading module is invoked. Look for calls to functions that read STL files in ASCII format.Affected if The application parses STL files using Open CASCADE's STL reader module
-
Verify input source accepts STL filesCheck if the application or system accepts user-supplied or externally sourced STL files (e.g., file upload, import feature, or CAD file processing pipeline).Affected if STL files from untrusted sources can be processed by the vulnerable parser
-
Confirm ASCII STL format handlingDetermine whether the application processes ASCII-formatted STL files (look for .stl files being read as text/ASCII rather than binary). The vulnerability triggers specifically with ASCII STL files containing extremely short lines.Affected if ASCII STL files are processed by the RWStl_Reader component
You are affected if you run Open CASCADE Technology version 7.9.3 or earlier (or exactly 8.0.0) and process ASCII STL files through the RWStl_Reader::ReadAscii parser, which lacks bounds checking on short input lines.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedImplement bounds checking: validate buffer lengths before strncasecmp and any direct byte access operations in RWStl_Reader::ReadAscii. Reject or properly handle STL files with lines shorter than expected minimum lengths.
Open Cascade Technology 7.9.4 or later (or 8.0.1+ if available)
- 1. Identify all deployed instances of Open Cascade Technology (OCCT) versions 7.9.3 or earlier, or version 8.0.0
- 2. Obtain the official patch or fixed release from Open CASCADE's official distribution channels (opencascade.com or their GitHub repository)
- 3. Before deployment, test the fixed version in a staging environment to verify compatibility with your application
- 4. Deploy the fixed version to production environments
- 5. Implement file type validation policies to restrict processing of untrusted STL files in applications using OCCT
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,888.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42476 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42476 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data