Skip to content
Heist/ feed
Back to feed
High

lua-http — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-4540

Improper Handling of Exceptional Conditions vulnerability in Daurnimator lua-http library allows Excessive Allocation and a denial of service (DoS) attack to be executed by sending a properly crafted request to the server. Such a request causes the program to enter an infinite loop. This issue affects lua-http: all versions before commit ddab283.

Products
lua-http
Affected versions
0.1-3, 0.3-1, 0.4-1, 0.4-2, 0.4-3
Fixed versions
Not specified
CVEs
CVE-2023-4540
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:05 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-4540

core-osv · Original source

Published 5 Sept 2023, 08:15 UTC

Improper Handling of Exceptional Conditions vulnerability in Daurnimator lua-http library allows Excessive Allocation and a denial of service (DoS) attack to be executed by sending a properly crafted request to the server. Such a request causes the program to enter an infinite loop. This issue affects lua-http: all versions before commit ddab283.

osv:UBUNTU-CVE-2023-4540

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

lua-http

Fixed versions: Not specified

Complete source record
{
  "id": "b1908a51e418e8b364a268707215e36308e4ef4a3583f7a1232bdf0ad01be0b9",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-4540",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-4540",
    "summary": "Improper Handling of Exceptional Conditions vulnerability in Daurnimator lua-http library allows Excessive Allocation and a denial of service (DoS) attack to be executed by sending a properly crafted request to the server. Such a request causes the program to enter an infinite loop. This issue affects lua-http: all versions before commit ddab283.",
    "evidence": "osv:UBUNTU-CVE-2023-4540",
    "products": [
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.4-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lua-http",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.4-3",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2023-4540",
      "aliases": [
        "UBUNTU-CVE-2023-4540"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1-3",
            "0.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.4-1",
            "0.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.4-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.4-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.4-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lua-http",
            "purl": "pkg:deb/ubuntu/lua-http?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.4-2",
            "0.4-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "lua-http",
                "binary_version": "0.4-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:25.832452268Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-4540"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-4540",
        "https://github.com/daurnimator/lua-http/commit/ddab2835c583d45dec62680ca8d3cbde55e0bae6",
        "https://cert.pl/posts/2023/09/CVE-2023-4540/",
        "https://www.cve.org/CVERecord?id=CVE-2023-4540"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-4540",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355640,
  "published_at": "2023-09-05T08:15:00+00:00"
}