CVE-2026-104254

Source
https://cve.org/CVERecord?id=CVE-2026-104254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-104254
Aliases
  • GHSA-wh5q-mpc8-67wf
Published
2026-11-06T21:20:48Z
Modified
2026-11-14T07:02:18Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
liboqs: Heap out-of-bounds read in LMS/HSS signature verification via unvalidated signature length (hss_verify_inc.c:215)
Details

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. From 0.11.0 through 0.16.0, builds configured with OQS_ENABLE_SIG_STFL_LMS=ON can read beyond a caller-supplied signature buffer when an untrusted truncated LMS or HSS-LMS signature reaches OQS_SIG_STFL_verify or OQS_SIG_STFL_alg_lms_verify. In hss_validate_signature_init() in src/sig_stfl/lms/external/hss_verify_inc.c, consumed-length checks do not ensure that the bottom-level q and C fields remain available, allowing up to 32 bytes to be read past the buffer. In version 0.16.0, is_hss_public_key() also reads at offset 8 after only a four-byte length check, allowing an over-read of up to eight bytes. No valid signature is required, but the public key must be syntactically plausible. The read data is consumed only by an internal hash and is not exposed, so the supported impact is a possible verifier crash and denial of service, not memory disclosure or acceptance of an invalid signature. This issue is scheduled to be fixed in version 0.17.0.

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

Affected packages

Git / github.com/open-quantum-safe/liboqs

Affected ranges

Type
GIT
Repo
https://github.com/open-quantum-safe/liboqs
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.11.0"
                },
                {
                    "last_affected":  "0.16.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "df3eb80fe68d2e5db0ecf5d503082cd5699e0859"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104254.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "290914514791170585922888542367067582695",
                "261462006259109141793058133113551052909",
                "117595127436478613821683698893965850759",
                "309041852797030711923856048275491539916",
                "274288125325399013738271856130659640275",
                "337170073207097503963662452625019664307",
                "58299264794287585851390229241942427793",
                "197390174017115308246199615325496757888",
                "198292560148239566967685098235928991359",
                "296021108135491770245809879312016461652",
                "17456076944491262387410201966797805444",
                "222519330307477526761058214089042942963",
                "283520223318177076595591851232797161349",
                "169241926426883931404421464167016824075"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-104254-252dd236",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "tests/test_sig_stfl.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "313502216233200766803721389447729276948",
            "length":  531
        },
        "id":  "CVE-2026-104254-534aec23",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "src/sig_stfl/lms/external/hss_verify_inc.c",
            "function":  "is_hss_public_key"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "96970350078162405963582963147222851163",
                "269858317833953557625407474678486153197",
                "334700007282627200417186740019627338626",
                "72634707674797156465314090311584871120",
                "228103398052967655953842329591944651472",
                "166363608421785974553575419779230540138",
                "321837984455542884236190406395456880985",
                "300198396950916976872686277251386337737",
                "272850085235542965859465044663481840775",
                "112049748403272662134850786995910476322",
                "254294861906890585252574472682028311526",
                "262017247960149657108427299225841665354",
                "122466105342098568867728084719274324005",
                "70575947156616545122972974146859871319",
                "107069441968826111998524212315211393246",
                "195949068416797390167468182995718011041",
                "59827579207141340270984298645152387813",
                "256090805514609728819654965882789551500",
                "328883756610971888525025668387186312119",
                "62744843616668589903266625177358785230",
                "261404661312980225773449345698515619083",
                "71684602904223144151594696818761513891",
                "99040100106065932990599915394114190842",
                "124072336152021610001991567870369568073",
                "246056288814427917398301958079817688043",
                "157778925833347469591599926926568762379"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-104254-5a5084da",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "src/sig_stfl/lms/external/hss_verify_inc.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "82509548200090297897347359168448882346",
            "length":  2790
        },
        "id":  "CVE-2026-104254-b1bf264c",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "src/sig_stfl/lms/external/hss_verify_inc.c",
            "function":  "hss_validate_signature_init"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "71000148743612566780892106669992008233",
            "length":  5856
        },
        "id":  "CVE-2026-104254-ba932767",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "tests/test_sig_stfl.c",
            "function":  "main"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "204344159780012553919927299928858501011",
            "length":  290
        },
        "id":  "CVE-2026-104254-cf1743c9",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "tests/test_sig_stfl.c",
            "function":  "test_correctness_wrapper"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "221482632301142366659104239340722960931",
            "length":  517
        },
        "id":  "CVE-2026-104254-d30c75a6",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/open-quantum-safe/liboqs/commit/df3eb80fe68d2e5db0ecf5d503082cd5699e0859",
        "target":  {
            "file":  "src/sig_stfl/lms/external/hss_verify_inc.c",
            "function":  "public_key_levels"
        }
    }
]
vanir_signatures_modified
"2026-11-14T07:02:18Z"