CVE-2026-62250

Source
https://cve.org/CVERecord?id=CVE-2026-62250
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62250.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-62250
Aliases
  • GHSA-7625-26gc-xqvp
Published
2026-10-30T20:37:47Z
Modified
2026-11-04T07:07:36Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
LibreDWG: unbounded allocation in pre-R13 DWG entity decoding
Details

LibreDWG is a free C library to read and write DWG files. Prior to 0.14.8413, a crafted pre-R13 DWG can make decode_preR13_entities() in src/decode.c enter a nonterminating loop that allocates a new object each iteration. decode_preR13 in src/decode_r11.c computes size from the raw file-controlled entities_start and entities_end header bounds; the callee clamps end to dat->size but never recalculates size. At end of input, bit_read_RC and bit_read_RS stop advancing dat->byte, the overflow guard fails because end equals dat->size, and the no-advance check compares against oldpos saved before the loop instead of the previous iteration. This leaves repeated allocation of dwg->object entries until allocation fails or the process is OOM-killed, not merely a constant-memory CPU hang. The defect remains after the clamping and no-progress changes associated with the earlier issue 1131. Applications and tools calling dwg_read_file() on untrusted files, including dwg2dxf, dwgread and dwg2svg, can suffer denial of service when a user or automated pipeline opens a malformed file; no attacker credentials are required. This issue is fixed in repository nightly version 0.14.8413.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-400",
        "CWE-835"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62250.json"
}
References

Affected packages

Git / github.com/libredwg/libredwg

Affected ranges

Type
GIT
Repo
https://github.com/libredwg/libredwg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "0.14.8413"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "4e14952c43be5b8feff6e54a61af3425d6ca95a4"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "0.14.8413",
            "range": [
                {
                    "fixed": "6d8292c0dd524cbc843d098fc6443e20740eb18a"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.10
0.10.1
0.11
0.11.1
0.12
0.12.1
0.12.2
0.12.3
0.12.4
0.12.5
0.13
0.13.1
0.13.2
0.13.3
0.13.3.7163
0.13.3.7165
0.13.3.7166
0.13.3.7168
0.13.3.7176
0.13.3.7183
0.13.3.7186
0.13.3.7187
0.13.3.7190
0.13.3.7199
0.13.3.7217
0.13.3.7220
0.13.3.7223
0.13.3.7224
0.13.3.7225
0.13.3.7226
0.13.3.7227
0.13.3.7233
0.13.3.7240
0.13.3.7246
0.13.3.7251
0.13.3.7257
0.13.3.7259
0.13.3.7262
0.13.3.7264
0.13.3.7265
0.13.3.7268
0.13.3.7270
0.13.3.7273
0.13.3.7298
0.13.3.7306
0.13.3.7308
0.13.3.7320
0.13.3.7324
0.13.3.7327
0.13.3.7338
0.13.3.7341
0.13.3.7344
0.13.3.7345
0.13.3.7351
0.13.3.7371
0.13.3.7377
0.13.3.7385
0.13.3.7405
0.13.3.7409
0.13.3.7411
0.13.3.7412
0.13.3.7414
0.13.3.7420
0.13.3.7424
0.13.3.7426
0.13.3.7429
0.13.3.7431
0.13.3.7434
0.13.3.7437
0.13.3.7442
0.13.3.7445
0.13.3.7453
0.13.3.7456
0.13.3.7460
0.13.3.7466
0.13.3.7469
0.13.3.7472
0.13.3.7473
0.13.3.7483
0.13.3.7491
0.13.3.7501
0.13.3.7507
0.13.3.7516
0.13.3.7533
0.13.3.7534
0.13.3.7535
0.13.3.7539
0.13.3.7545
0.13.3.7551
0.13.3.7552
0.13.3.7554
0.13.3.7557
0.13.3.7558
0.13.3.7562
0.13.3.7571
0.13.3.7574
0.13.3.7577
0.13.3.7582
0.13.3.7599
0.13.3.7600
0.13.3.7603
0.13.3.7635
0.13.3.7637
0.13.3.7640
0.13.3.7646
0.13.3.7649
0.13.3.7650
0.13.3.7657
0.13.3.7663
0.13.3.7665
0.13.3.7675
0.13.3.7680
0.13.3.7685
0.13.3.7686
0.13.3.7690
0.13.3.7696
0.13.3.7702
0.13.3.7715
0.13.3.7721
0.13.3.7727
0.13.3.7730
0.13.3.7737
0.13.3.7741
0.13.3.7743
0.13.3.7752
0.13.3.7761
0.13.3.7763
0.13.3.7772
0.13.3.7776
0.13.3.7778
0.13.3.7789
0.13.3.7792
0.13.3.7794
0.13.3.7797
0.13.3.7802
0.13.3.7805
0.13.3.7808
0.13.3.7810
0.13.3.7812
0.13.3.7813
0.13.3.7816
0.13.3.7819
0.13.4
0.13.4.7969
0.13.4.7974
0.13.4.7976
0.13.4.7985
0.13.4.7998
0.13.4.8001
0.13.4.8014
0.13.4.8018
0.13.4.8028
0.13.4.8036
0.13.4.8043
0.14
0.14.8363
0.14.8367
0.14.8374
0.14.8384
0.14.8390
0.14.8394
0.14.8396
0.14.8403
0.14.8406
0.14.8411
0.3
0.4-dev
0.4.900
0.4.924
0.4.938
0.5
0.6
0.6.1
0.6.2
0.7
0.8
0.9
0.9.1
0.9.2
0.9.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62250.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "101057962660240199977739962361084677806",
            "length": 15744
        },
        "id": "CVE-2026-62250-2585a924",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/libredwg/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4",
        "target": {
            "file": "src/decode.c",
            "function": "decode_preR13_entities"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "223044812868214305406537915762766597145",
                "99076022934765687994725702429975844933",
                "280521884270734272855691806749018737604",
                "239676760222698117085585951878174431954",
                "108589014772739133536422962877895928287",
                "111566859272391972274809454084682645498",
                "270552445390636497588811575530209397927",
                "170898481290521496832733926505120095310",
                "110712802109419274686620107201272151619",
                "40000856780789621360532134012874732574",
                "6827503993108884696229437917682571290",
                "136547766111534988436194402651449602153",
                "23847440018946259619561816784789097540"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-62250-68a96e22",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/libredwg/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4",
        "target": {
            "file": "src/decode.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "249196408222513215028498025978886477842",
                "132013040447803289623657330526935472789",
                "305044810762776238659153260895624675768",
                "25538343145634585529981249819157098987"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-62250-aad74c69",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/libredwg/libredwg/commit/6d8292c0dd524cbc843d098fc6443e20740eb18a",
        "target": {
            "file": "include/dwg.h"
        }
    }
]
vanir_signatures_modified
"2026-11-04T07:07:36Z"