UBUNTU-CVE-2024-58135

Source
https://ubuntu.com/security/CVE-2024-58135
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-58135
Upstream
Published
2025-05-03T11:15:00Z
Modified
2026-09-16T14:01:16Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default. When creating a default app skeleton with the "mojo generate app" tool, a weak secret is written to the application's configuration file using the insecure rand() function, and used for authenticating and protecting the integrity of the application's sessions. This may allow an attacker to brute force the application's session keys. Release 9.46 fixes the issue by providing high quality randomness, even in absence of CryptX. Users should be aware that the update does not replace previously generated weak secrets. A secret generated with the previous version MUST be replaced to ensure the updated version is using a strong secret.

References

Affected packages

Ubuntu:16.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.15+dfsg-1
6.15+dfsg-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "6.15+dfsg-1ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:18.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

7.*
7.39+dfsg-1ubuntu1
7.43+dfsg-1ubuntu1
7.57+dfsg-1ubuntu1
7.59+dfsg-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "7.59+dfsg-1ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:20.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

8.*
8.22+dfsg-1
8.23+dfsg-1
8.26+dfsg-1
8.27+dfsg-1
8.32+dfsg-1
8.33+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "8.33+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:22.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

8.*
8.71+dfsg-1
9.*
9.22+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "9.22+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:24.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.33+dfsg-1
9.35+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "9.35+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:25.10
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.39+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "9.39+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"
Ubuntu:26.04:LTS
libmojolicious-perl

Package

Name
libmojolicious-perl
Purl
pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.39+dfsg-1
9.42+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmojolicious-perl",
            "binary_version": "9.42+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58135.json"