CVE-2023-50268

Source
https://cve.org/CVERecord?id=CVE-2023-50268
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50268.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-50268
Aliases
  • GHSA-7hmr-442f-qc8j
Downstream
Related
Published
2023-12-13T20:49:54.982Z
Modified
2026-07-15T15:53:48.515695Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jq has stack-based buffer overflow in decNaNs
Details

jq is a command-line JSON processor. Version 1.7 is vulnerable to stack-based buffer overflow in builds using decNumber. Version 1.7.1 contains a patch for this issue.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50268.json",
    "cwe_ids": [
        "CWE-120",
        "CWE-121"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/jqlang/jq

Affected ranges

Type
GIT
Repo
https://github.com/jqlang/jq
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "1.7"
        },
        {
            "last_affected": "1.7"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:jqlang:jq:1.7:*:*:*:*:*:*:*"
}

Affected versions

1.*
1.7
= 1.*
= 1.7
jq-1.*
jq-1.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50268.json"
vanir_signatures_modified
"2026-07-15T15:53:48Z"
vanir_signatures
[
    {
        "digest": {
            "function_hash": "22550875515713324128520625183215086364",
            "length": 634.0
        },
        "id": "CVE-2023-50268-a2d2ea46",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/c9a51565214eece8f1053089739aea73145bfd6b",
        "signature_type": "Function",
        "target": {
            "function": "jvp_number_cmp",
            "file": "src/jv.c"
        }
    },
    {
        "digest": {
            "line_hashes": [
                "1371753125883065672057533830705252943",
                "216860606710970311303215741001243012159",
                "165464292948581339852936572259524919584",
                "255758938615600683693124477605172127745",
                "245329855745470253622444550787235282293",
                "154994877992986023031708220241328935675",
                "93166843768021528035323026897990025527",
                "132979471927433437070415656838934883298",
                "277305042641553834268379700979743214986",
                "5391192241338951654753776646990161703",
                "165392846152929313379498705231826085965",
                "166852718090386609754714604848746705693"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-50268-d89c5938",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/c9a51565214eece8f1053089739aea73145bfd6b",
        "signature_type": "Line",
        "target": {
            "file": "src/jv.c"
        }
    }
]